//
//  QKTabBarCtrl.m
//  testTool
//
//  Created by Su on 2018/12/30.
//  Copyright © 2018 com.qiankun. All rights reserved.
//

#import "QKTabBarCtrl.h"
#import "QKNavigationCtrl.h"

#import "QKUIKitCtrl.h"
#import "QKLabCtrl.h"
#import "QKCompoennetsCtrl.h"

@interface QKTabBarCtrl ()

@end

@implementation QKTabBarCtrl

- (void)viewDidLoad {
    [super viewDidLoad];
    
    QKUIKitCtrl *uikitCtrl = [[QKUIKitCtrl alloc] init];
    uikitCtrl.hidesBottomBarWhenPushed = NO;
    QKNavigationCtrl *uikitNav = [[QKNavigationCtrl alloc] initWithRootViewController:uikitCtrl];
    uikitNav.tabBarItem = [QKHelper tabBarItemWithTitle:@"QKUIkit" image:[UIImageMake(@"icon_tabbar_uikit") imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] selectedImage:UIImageMake(@"icon_tabbar_uikit_selected") tag:0];

    
    
    QKCompoennetsCtrl *comCtrl = [[QKCompoennetsCtrl alloc] init];
    comCtrl.hidesBottomBarWhenPushed = NO;
    QKNavigationCtrl *comNav = [[QKNavigationCtrl alloc] initWithRootViewController:comCtrl];
    comNav.tabBarItem = [QKHelper tabBarItemWithTitle:@"QKComopennets" image:[UIImageMake(@"icon_tabbar_component") imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] selectedImage:UIImageMake(@"icon_tabbar_component_selected") tag:1];
    
    
    
    QKLabCtrl *labCtrl = [[QKLabCtrl alloc] init];
    labCtrl.hidesBottomBarWhenPushed = NO;
    QKNavigationCtrl *labNav = [[QKNavigationCtrl alloc] initWithRootViewController:labCtrl];
    labNav.tabBarItem = [QKHelper tabBarItemWithTitle:@"QKLabCtrl" image:[UIImageMake(@"icon_tabbar_lab") imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] selectedImage:UIImageMake(@"icon_tabbar_lab_selected") tag:1];
    
    
    self.viewControllers = @[uikitNav,comNav,labNav];
    
    
    
    
    
}

@end
